package com.hzsai.mininotecaller.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * The type Date time util.
 *
 * @author hzsai
 * @date 2020 /1/8 9:59
 * @usage:
 */
public class DateTimeUtil {


    private static final String LOCAL_DATEFORMAT = "yyyy/MM/dd - HH:mm:ss";

    private static final DateTimeFormatter dtf = DateTimeFormatter.ofPattern(LOCAL_DATEFORMAT);

    /**
     * Gets date time.
     *
     * @return the date time
     */
    public static String getDateTime() {
        return dtf.format(LocalDateTime.now());
    }
}
